package org.example.designPattern.creation.builder;

/*
* 奥迪
* */
public class AudiBuilder implements IBuilder {
    @Override
    public IBuilder initalEngine(String engine) {
        this.getCar().setEngine(engine);
        return this;
    }

    @Override
    public IBuilder initalGear(String gear) {
        this.getCar().setGear(gear);
        return this;
    }

    @Override
    public IBuilder initalDoor(String door) {
        this.getCar().setDoor(door);
        return this;
    }

    @Override
    public IBuilder initailWheel(String wheel) {
        this.getCar().setWheel(wheel);
        return this;
    }

    @Override
    public Car getCar() {
        return car;
    }
}
